<div class="box-tools" style="top:10px;">
  <form action="{:url('project/full')}" method="GET" pjax-search="" id="project3—form" class="form-inline">
    <div class="form-group">
      <label for="exampleInputName2">项目状态</label>
      <select class="form-control" name="status" id="exampleInputName2" style="border-radius:3px;">
        <option value="0">全部</option>
        <option value="3" {if condition="input('status') eq 3" }selected="selected" {/if} >待放款</option>
        <option value="4" {if condition="input('status') eq 4" }selected="selected" {/if} >待还款</option>
        <option value="5" {if condition="input('status') eq 5" }selected="selected" {/if} >待兑付</option>
        <option value="6" {if condition="input('status') eq 6" }selected="selected" {/if} >已兑付</option>
        <!--
<option value="-1" {if condition="input('status') eq -1"}selected="selected"{/if}>已失败</option>
-->
      </select>
    </div>
    <div class="form-group">
      <label for="type">关键字</label>
      <input type="text" name="search" id="type" class="form-control" value="{:input('get.search')}"
             placeholder="{$Think.lang.search}"/>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-primary sreachs">搜索</button>
      <button type="button" class="btn btn-primary" onclick="resetForm()">重置</button>
    </div>
  </form>
</div>
<script>
    function resetForm() {
        $('select[name="status"]').val('0')
        $('input[name="search"]').val('')
        $('#project3—form').submit()
    }
</script>